package pers.cz.orm.dao.dialect;

import utils.DateUtils;

import java.util.Date;

/**
 * @program: jef-orm
 * @description: oracel方言
 * @author: Cheng Zhi
 * @create: 2023-08-12 17:42
 **/
public class OracleDialect extends AbstractDialect{


    @Override
    public String toDbDate(Date value) {
        return "TO_DATE('" + DateUtils.format((Date) value, "yyyy-MM-dd HH:mm:ss")+ "','yyyy-mm-dd hh24:mi:ss')";
    }

    @Override
    public String getDriveName() {
        return "oracle.jdbc.driver.OracleDriver";
    }
}
